package com.xz.example.model;

/**
 * @author 张志航     
 * @version V1.0.0
 * @projectName design_mode
 * @title     PoliceCarAdapter   
 * @package    com.xz.example.model  
 * @date   2019/12/3 17:13  
 * @explain
 */
public class PoliceCarAdapter extends CarController {

    private PoliceSound policeSound;
    private PoliceLamp policeLamp;

    @Override
    public void phonate() {
        policeSound = new PoliceSound();
        policeSound.alarmSound();
    }

    @Override
    public void twinkle() {
        policeLamp = new PoliceLamp();
        policeLamp.alarmLamp();
    }
}
